# coding: utf-8

'''
    >>> c = Carta('A','ouros')
    >>> c
    <A de ouros>

'''



class Carta(object):
    def __init__(self, valor, naipe):
        self.valor = valor
        self.naipe = naipe
    def __repr__(self):
        return '<%s de %s>' % (self.valor, self.naipe)
    def __str__(self):
        return '%s de %s' % (self.valor, self.naipe)
        
import doctest
print doctest.testmod()
